import {
  AppstoreOutlined,
  PieChartOutlined,
  DesktopOutlined,
  ContainerOutlined,
  MailOutlined,
} from '@ant-design/icons';

const menus = [
  {
    title: '首页',
    url: '/home',
    icon: <PieChartOutlined />,
  },
  {
    title: '商品',
    icon: <MailOutlined />,
    subMenuKey: '/product',
    children: [
      {
        title: '品类管理',
        url: '/product/category',
        icon: <ContainerOutlined />,
      },
      {
        title: '商品管理',
        url: '/product/manage',
        icon: <ContainerOutlined />,
      },
    ],
  },
  {
    title: '用户管理',
    url: '/user',
    icon: <DesktopOutlined />,
  },
  {
    title: '角色管理',
    url: '/role',
    icon: <ContainerOutlined />,
  },
  {
    title: '图形图表',
    icon: <AppstoreOutlined />,
    subMenuKey: '/charts',
    children: [
      {
        title: 'bar',
        url: '/charts/bar',
        icon: <ContainerOutlined />,
      },
      {
        title: 'pie',
        url: '/charts/pie',
        icon: <ContainerOutlined />,
      },
      {
        title: 'line',
        url: '/charts/line',
        icon: <ContainerOutlined />,
      },
    ],
  },
];

export { menus };
export { default as Home } from '../Home';
export { default as Category } from '../product/Category/index';
export { default as Manage } from '../product/Manage/index';
export { default as User } from '../User';
export { default as Role } from '../Role';
export { default as Bar } from '../Charts/Bar/index';
export { default as Line } from '../Charts/Line/index';
export { default as Pie } from '../Charts/Pie/index';
